package cn.flying.cloud.flow.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.flying.cloud.flow.entity.FwTaskCandidate;

/**
 * 任务节点权限关联表 Mapper 接口
 *
 * @author
 * @since 2024-09-20 10:45:05
 */
@Mapper
public interface FwTaskCandidateMapper extends BaseMapper<FwTaskCandidate> {

    /**
     * 插入一条记录
     *
     * @param fwTaskCandidate 实体对象
     * @return
     */
    @Insert("insert into fw_task_candidate (id, node_id, node_name, node_type, candidate_user, candidate_post, candidate_role, proc_def_id, proc_def_key, created_by, created_time, updated_by, updated_time, tenant_id, revision, deleted) " +
            "values (#{id}, #{nodeId}, #{nodeName}, #{nodeType}, #{candidateUser}, #{candidatePost}, #{candidateRole}, #{procDefId}, #{procDefKey}, #{createdBy}, #{createdTime}, #{updatedBy}, #{updatedTime}, #{tenantId}, #{revision}, #{deleted})")
    int insert(FwTaskCandidate fwTaskCandidate);
}
